using GameKitUnity.UI;
using UnityEngine;
using UnityEngine.UI;

namespace OneGame
{
    public class UITask : MonoBehaviour
    {
        [SerializeField]
        private Button closeButton;

        private void Start()
        {
            closeButton.onClick.AddListener(OnCloseButtonClicked);
        }

        private void OnCloseButtonClicked()
        {
            GetComponent<UIPanel>().Close();
        }
    }
}